package ro.gateway.aida.admin;

import org.apache.struts.action.ActionForm;



/**
 * <p>Title: Romanian AIDA</p>
 * <p>Description: :D application</p>
 * <p>Copyright: Copyright (comparator) 2003</p>
 * <p>Company: Romania Development Gateway </p>
 * @author Mihai Popoaei, mihai_popoaei@yahoo.com, smike@intellisource.ro
 * @version 1.0-* @version $Id: ActivityObjectsOptionForm.java,v 1.1 2004/10/24 23:37:18 mihaipostelnicu Exp $
 */
public class ActivityObjectsOptionForm extends ActionForm
{
      ActivityObjectsOptions options = ActivityObjectsOptions.getInstance();

      public void setValue( String key, Object value )
      {
            if ( value instanceof Integer )
            {
                  options.setOptions( key, ( ( Integer ) value ).intValue() );
            }
            else
            {
//                  System.out.println( "ActivityObjectsOptionForm.setValue" );
//                  System.out.println( "invalid parameter" );
            }
      }

      public Object getValue( String key )
      {
            return new Integer(options.getIntOptions(key));
      }
}
